package com.guofen.service.food;

import com.guofen.dto.FoodGroupByType;
import com.guofen.pojo.Food;
import io.swagger.models.auth.In;

import java.util.List;
import java.util.Map;

public interface FoodService {
    Map<String, Object> getAllFood(int pageSize, int currentPage);
    Food getByName(String name);
    int delete(String name);
    int update(Food food);
    int insert(Food food);
    Map<String, Object> getByCost(int cost1, int cost2, int pageSize, int currentPage);
    Map<String, Object> getByType(String type, int pageSize, int currentPage);
    List<FoodGroupByType> getGroupByType();
    Map<String, Object> getByTypes(String[] types, int currentPage, int pageSize);
    List<String> getNameByType(String type);
    List<String> getDistinctTypes();
    Map<String, Object> getByColor(String color, int pageSize, int currentPage);
    Map<String, Object> getByCostColor(int cost1, int cost2, String color,
                                       int pageSize, int currentPage);
    Map<String, Object> getByCostType(int cost1, int cost2, String type,
                                      int pageSize, int currentPage);
    Map<String, Object> getByTypeColor(String type, String color,
                                       int pageSize, int currentPage);
    List<Integer> getTypeDistribution();
    List<Integer> getColorDistribution();
    Map<String, Object> getCostDistribution(int groupNum);
    List<Integer> getColorDisSelective(String labels);
}
